$(function () {
    $("#addData").on("click", function () {
        var title = $("#title").val();
        var meetTime = $("#meetTime").val();
        var lead = $("#lead").val();
        if (title == "") {
            alert("会议标题不能为空！");
            return false;
        }
        var addSel = $.Params.create();
        addSel.addParams("title", title);
        addSel.addParams("meetTime", meetTime);
        addSel.addParams("lead", lead);
        addSel.ajax("post", getAdminIP() + "pfMeets", function (data) {
            if (data.success) {
                window.location.href = "pfMeetList.html";
            } else {
                alert(data.msg);
            }
        })
    })

    $("#cancelAdd").on("click", function () {
        history.go(-1);
    })
})